<template>
  <el-dialog v-if="dialogFormVisible" title="商户人员编辑" :close-on-click-modal="false" :visible.sync="dialogFormVisible">
    <el-form ref="ruleForm" :model="params" :rules="rules" label-width="6rem">
      <el-row>
        <el-col :span="12">
          <el-form-item prop="name" label="员工账号：">
            <el-input v-model="params.name" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item prop="name" label="员工姓名：">
            <el-input v-model="params.name" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item prop="nickName" label="员工昵称：">
            <el-input v-model="params.nickName" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item prop="name" label="联系方式：">
            <el-input v-model="params.name" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item prop="name" label="所属角色：">
            <el-select v-model="params.name">
              <el-option label="测试" value="0" />
            </el-select>
          </el-form-item>
        </el-col>

      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisible = false">取 消</el-button>
      <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogFormVisible: false,
      params: {
        name: '0'
      },
      rules: {
        name: [
          { required: true, message: '请输入项目名称', trigger: 'blur' }
        ]
      }
    }
  }
}
</script>

<style lang="scss">

</style>
